package com.zm;

import java.lang.annotation.*;

@Target({ElementType.TYPE,ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited()
public @interface MyAnno{
 public String name() default "abc";
 public int value();
 public String[] items() default "cba";
 public int number() default 200;
}

@MyAnno(100)
class f{
 @MyAnno(value = 100,name = "张三",items = "张三")
 int a;
 @MyAnno(value = 100,items = {"张三","李四"},number = 100)
 void hello(){

 }
}

class j extends f{

}